package org.huntaway.kernel.mode.visitor;

import java.util.ArrayList;
import java.util.Collection;

import org.huntaway.kernel.mode.visitor.imp.ConcreteVisitor;
import org.huntaway.kernel.mode.visitor.imp.FloatElement;
import org.huntaway.kernel.mode.visitor.imp.StringElement;
import org.huntaway.kernel.mode.visitor.mode.Visitor;

public class Client {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Visitor visitor = new ConcreteVisitor();

		StringElement stringE = new StringElement("I am a String");
		visitor.visitString(stringE);

		Collection list = new ArrayList();
		list.add(new StringElement("I am a String1"));
		list.add(new StringElement("I am a String2"));
		list.add(new FloatElement(new Float(12)));
		list.add(new StringElement("I am a String3"));
		visitor.visitCollection(list);

	}

}
